home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
updates
/
update24.zoo
/
test
/
diffs
next >
Wrap
Text File
|
1992-08-14
|
4KB
|
187 lines
*** 1.1 1992/04/19 17:06:14
--- Changelo 1992/08/14 17:16:17
***************
*** 3,5 ****
--- 3,18 ----
in doprnt.c
---------------------- Patchlevel 03 --------------------------------------
+
+ tstdio.c:: ++jrb
+ in the fully buffered test, we did'nt account for the `\r' introduced
+ by putc'ing `\n'.
+
+ trdwr.c:: ++jrb
+ on a wr ("w+") stream doing a reversal of direction without an
+ intervening fseek() is not guaranteed to do anything sensible.
+ this test was failing on all machines i could try it on
+ (sun, hp, dec, mips, atari) for this reason. inserted a fseek()
+ to current position between getc()/putc() reversal.
+
+ ---------------------- Patchlevel 04 --------------------------------------
*** 1.1 1992/03/26 21:49:31
--- Makefile.hp 1992/08/14 17:16:17
***************
*** 5,11 ****
#
SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c tstrl1.c \
! tstrl2.c ttime.c
.SUFFIXES: .ttp
--- 5,11 ----
#
SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c tstrl1.c \
! tstrl2.c ttime.c tstrtoul.c twrseek.c
.SUFFIXES: .ttp
*** 1.1 1992/03/26 21:49:31
--- Makefile.sun 1992/08/14 17:16:18
***************
*** 3,9 ****
# half the tests can be done because there are no ANSI libs
#
SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
! tscanf.c tsetjm.c tsignl.c tstdio.c
.SUFFIXES: .ttp
--- 3,9 ----
# half the tests can be done because there are no ANSI libs
#
SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
! tscanf.c tsetjm.c tsignl.c tstdio.c twrseek.c
.SUFFIXES: .ttp
*** 1.1 1992/03/26 21:49:31
--- Makefile.tos 1992/08/14 17:16:18
***************
*** 1,6 ****
SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
tregex.c tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c tstrl1.c \
! tstrl2.c ttime.c
.SUFFIXES: .ttp
--- 1,6 ----
SRC = tatof.c tbcopy.c tctype.c tprintf.c tqsort.c trandm.c trdwr.c \
tregex.c tscanf.c tsetjm.c tsignl.c tstdio.c tstring.c tstrl1.c \
! tstrl2.c ttime.c tstrtoul.c twrseek.c
.SUFFIXES: .ttp
*** 1.3 1992/04/19 17:06:14
--- PatchLev.h 1992/08/14 17:16:18
***************
*** 1,5 ****
! #define PatchLevel "03"
/*
*
--- 1,5 ----
! #define PatchLevel "04"
/*
*
*** 1.1 1992/03/26 21:49:31
--- tbcopy.c 1992/08/14 17:16:19
***************
*** 53,67 ****
}
int
main(int argc, char **argv)
{
- unsigned char bigo[0x20000];
- unsigned char ahull[LEN + 4], *arry;
- unsigned char bhull[LEN + 4], *brry;
long i;
int k;
for (i = 0; i < 0x20000; i++) {
bigo[i] = i & 0xff;
--- 53,69 ----
}
+ unsigned char bigo[0x20000];
+ unsigned char ahull[LEN + 4];
+ unsigned char bhull[LEN + 4];
+
int
main(int argc, char **argv)
{
long i;
int k;
+ unsigned char *arry, *brry;
for (i = 0; i < 0x20000; i++) {
bigo[i] = i & 0xff;
*** 1.1 1992/03/26 21:49:31
--- trdwr.c 1992/08/14 17:16:20
***************
*** 21,26 ****
--- 21,27 ----
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+ #include <unistd.h>
#ifndef FILENAME_MAX
#define FILENAME_MAX 256
***************
*** 89,94 ****
--- 90,96 ----
}
}
+ fseek(f, 0L, SEEK_CUR);
{
long int where = ftell(f);
if (where == replace_from)
*** 1.2 1992/03/27 05:10:03
--- tstdio.c 1992/08/14 17:16:21
***************
*** 139,145 ****
#endif
setvbuf(fp, (char *) 0, _IOFBF, 4);
puts("<pause>ABCD<pause>EFGH<pause>");
! puts("ABC<pause>DEFG<pause>H");
for (i = 0; i < 8; i++)
putc('A'+i, fp), sleep(1);
putc('\n', fp);
--- 139,152 ----
#endif
setvbuf(fp, (char *) 0, _IOFBF, 4);
puts("<pause>ABCD<pause>EFGH<pause>");
! #ifdef atarist
! /* in text mode when we putc('\n', fp) we add a '\r' so we are off
! by one char
! */
! puts("AB<pause>CDEF<pause>GH<pause>");
! #else
! puts("ABC<pause>DEFG<pause>H<pause>");
! #endif
for (i = 0; i < 8; i++)
putc('A'+i, fp), sleep(1);
putc('\n', fp);
***************
*** 146,151 ****
--- 153,159 ----
for (i = 0; i < 8; i++)
putc('A'+i, fp), sleep(1);
fclose(fp);
+ sleep(2);
puts("");
}
}